﻿using FAMailUtils.MailGun;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace famails.BackEnd.page
{
    public partial class DomainDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string domain=Request.QueryString["dm"];
                if (domain + "" != "")
                {
                    DomainUtils utils = new DomainUtils(ConfigurationManager.AppSettings["api-key"]);
                    DomainItem item = utils.GetDomain(domain);
                    rpt_sending.DataSource = item.sending_dns_records;
                    rpt_sending.DataBind();
                }
            }

        }
    }
}